﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartMotion.Core.扩展方法
{
    public static  class CollectionEx
    {
        public static void ForEach<T>(this IEnumerable<T> list, Action<T> function)
        {
            foreach (T obj in list)
            {
                function(obj);
            }
        }

    }
}
    